package com.qiaofang.applet.service.other.service.mapstruct;

import com.qiaofang.applet.service.other.domain.Carousel;
import com.qiaofang.applet.service.other.service.dto.CarouselDetailDto;
import com.qiaofang.applet.service.other.service.dto.CarouselResponseDto;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

/**
 * @author QF2019
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CarouselMapper {
    CarouselDetailDto domainToDetailDto(Carousel carousel);

    List<CarouselDetailDto> domainToDetailDto(List<Carousel> list);

    CarouselResponseDto domainToResponseDto(Carousel carousel);

    List<CarouselResponseDto> domainToResponseDto(List<Carousel> list);

    Carousel detailDtoToDomain(CarouselDetailDto detailDto);

    List<Carousel> detailDtoToDomain(List<CarouselDetailDto> list);
}
